import request from "@/utils/request";


// GET /admin/product/getCategory1 获取一级分类列表
export const getCategory1Api = () => {
  return request.get(`/admin/product/getCategory1`);
};

// GET /admin/product/getCategory2/{category1Id}
export const getCategory2Api = (category1Id) => {
  return request.get(`/admin/product/getCategory2/${category1Id}`);
};

// GET /admin/product/getCategory3/{category2Id}
export const getCategory3Api = (category2Id) => {
  return request.get(`/admin/product/getCategory3/${category2Id}`);
};